#include <stdio.h>
#include <stdlib.h>

#include "sqlite3.h"
#define DBFILE "test.db"

int main(int argc, char *argv[])
{
    sqlite3 *db = NULL;
    int rc = sqlite3_open(DBFILE, &db);
    if(rc != SQLITE_OK)
    {
        printf("Can't open database: %s\n", sqlite3_errmsg(db));
    }
    else
    {
        printf("You have opend a sqlite3 file named %s successfully!\n", DBFILE);
    }
    sqlite3_close(db);

    return 0;
}
